<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
</head>
<body>
{#{{ teacher_data.name }}<br>#}
{#{{ teacher_data.nextpage }}<br>#}
<h1 align="center">用户信息</h1>

<table width="60%" align="center" border="1px" cellpadding="0px" cellspacing="0px">
    <tr align="center">
        <td>id</td>
        <td>用户姓名</td>
        <td>用户性别</td>
        <td>用户身高</td>
        <td>用户电话</td>
        <td>操作</td>
    </tr>
    {% for userelement in user_data %}
        <tr align="center">
        <td>{{userelement.v_user_id}}</td>
        <td>{{userelement.v_user_name}}</td>
        <td>{{userelement.v_user_sex}}</td>
        <td>{{userelement.v_user_height}}</td>
        <td>{{userelement.v_tel}}</td>
        <td>
            <a href="/app01/updateuserpage/?id={{userelement.v_user_id}}">更新</a>|
            <a href="/app01/deleteuser/?id={{userelement.v_user_id}}" onclick="return method01()">删除</a>
        </td>
    </tr>
    {% endfor %}
</table>
<div>
    共{{ user_data.m_gettotalpagenumber }}页&nbsp;&nbsp;
    当前页：{{ user_data.v_currentpage }}&nbsp;&nbsp;
<a href="/app01/getusers/{{ 1 }}">首页</a>&nbsp;&nbsp;
<a href="/app01/getusers/{{ user_data.m_getprepageno }}">上一页</a>&nbsp;&nbsp;
<a href="#">1</a>
<a href="#">2</a>
<a href="#">3</a>
<a href="#">4</a>
<a href="#">5</a>&nbsp;&nbsp;
<a href="/app01/getusers/{{ user_data.m_getnextpageno }}">下一页</a>&nbsp;&nbsp;
<a href="/app01/getusers/{{ user_data.m_gettotalpagenumber }}">尾页</a>

</div>

<hr>
<a href="/app01/adduserpage/" style="margin-left: 50%">添加用户</a>
<script type="text/javascript">
    function method01(){
        var_v_result=window.confirm("确定要删除该条记录吗？")
        return var_v_result
    }
</script>
</body>
</html>